package score;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int[] scores = new int[6];
        int sum = 0;
        int max = 0;
        int min = 0;
        System.out.println("请输入六位评委的评分");
        for(int i=0;i<6;i++)
        {
            scores[i] = scanner.nextInt();
            sum+=scores[i];
        }
        max = scores[0];
        min = scores[0];
        for(int i=0;i<6;i++)
        {
            if(scores[i]>max)
            {
                max = scores[i];
            }
            if(scores[i]<min)
            {
                min = scores[i];
            }
        }
        sum -= max;
        sum -= min;
        System.out.println("最高分:"+max);
        System.out.println("最低分:"+min);
        System.out.println("最终得分为"+sum/4.0);
    }
}
